﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/Site.Master"
    CodeBehind="ConfiaView.aspx.cs" Inherits="ELoje_web.ConfiaView" %>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <script src="Scripts/common.js" type="text/javascript"></script>
    <div class="content">
        <div id="siteMap">
            <div style="float: left;">
                <asp:Label ID="lblHistoryNavigation" runat="server"></asp:Label>
                <asp:Label ID="lblThisPage" runat="server"></asp:Label>
            </div>
            <div style="text-align: right">
                <asp:LinkButton runat="server" ID="lblBack" PostBackUrl="~/Default.aspx">Voltar</asp:LinkButton>
            </div>
        </div>
        <hr class="hr1" />
        <div class="form">
            <div class="linhaForm">
                <label>
                    Nome
                    <asp:TextBox ID="txtNome" runat="server" Width="130" MaxLength="10" onpaste="return false;"></asp:TextBox>
                </label>
                <label>
                    Teste
                    <asp:DropDownList ID="ddlFiltro" runat="server" Width="245"></asp:DropDownList>
                </label>
            </div>
            <div class="buttonsBar">
                <div class="buttonCollor">
                    <asp:Button runat="server" ID="btnBuscar" EventName="click" />
                </div>
            </div>
        </div>
        <asp:UpdatePanel ID="upGrid" runat="server">
            <Triggers>
                <asp:AsyncPostBackTrigger ControlID="btnBuscar" />
                <asp:PostBackTrigger ControlID="gvConfia" />
            </Triggers>
            <ContentTemplate>
                <div id="painelSlider" runat="server" visible="false">
                    <div id="content-slider"></div>
                </div>
                <div id="content-scroll">
                    <div id="GENERALVIEW-content-holder">
                        <div class="divGridCenter" id="divGrid">
                            <asp:GridView ID="gvConfia" runat="server" CssClass="gridFixedLayout" AutoGenerateColumns="false"
                                Width="100%" OnDataBound="gvConfia_DataBound" OnSelectedIndexChanging="gvConfia_SelectedIndexChanging"
                                AllowPaging="true" OnPageIndexChanging="gvConfia_PageIndexChanging" PageSize="10" DataKeyNames="COD_DEPARTAMENTO"
                                OnRowDataBound="gvConfia_RowDataBound">
                                <HeaderStyle BackColor="#c9c9c9" Font-Bold="true" ForeColor="#000" CssClass="gridViewHead" />
                                <RowStyle BackColor="#FFFFFF" CssClass="gridViewField" />
                                <AlternatingRowStyle BackColor="#d1dce8" />
                                <PagerStyle CssClass="gridViewField scrollPager" />
                                <EmptyDataTemplate>
                                    <div class="msgEmptyList floatLeft" style="width: 1024px;">
                                        Dados não encontrados
                                    </div>
                                </EmptyDataTemplate>
                                <Columns>
                                    <asp:TemplateField>
                                        <HeaderTemplate>
                                            Detalhes
                                        </HeaderTemplate>
                                        <ItemTemplate>
                                            <asp:ImageButton ID="btnDetalhes" runat="server" ImageUrl="~/img/seta_azul.png" CommandName="select" />
                                        </ItemTemplate>
                                        <ItemStyle Width="50px" />
                                    </asp:TemplateField>
                                    <asp:TemplateField>
                                        <HeaderTemplate>
                                        </HeaderTemplate>
                                        <ItemTemplate>
                                            <asp:ImageButton ID="btnUrgente" runat="server" CommandName="select" />
                                        </ItemTemplate>
                                        <ItemStyle Width="25px" />
                                    </asp:TemplateField>
                                    <asp:TemplateField>
                                        <HeaderTemplate>
                                            Sigla
                                        </HeaderTemplate>
                                        <ItemTemplate>
                                            <asp:Label runat="server" ID="lblSigla" Text='<%# Eval("SIGLA_DEPARTAMENTO") %>'></asp:Label>
                                        </ItemTemplate>
                                        <ItemStyle Width="70px" />
                                    </asp:TemplateField>
                                    <asp:TemplateField>
                                        <HeaderTemplate>
                                            Nome
                                        </HeaderTemplate>
                                        <ItemTemplate>
                                            <asp:Label runat="server" ID="lblStatus" Text='<%# Eval("DESC_DEPARTAMENTO") %>'></asp:Label>
                                        </ItemTemplate>
                                        <ItemStyle Width="70px" />
                                    </asp:TemplateField>
                                    <asp:TemplateField>
                                        <HeaderTemplate>
                                            Nome
                                        </HeaderTemplate>
                                        <ItemTemplate>
                                            <asp:Label runat="server" ID="lblStatus1" Text='<%# Eval("DESC_DEPARTAMENTO") %>'></asp:Label>
                                        </ItemTemplate>
                                        <ItemStyle Width="70px" />
                                    </asp:TemplateField>
                                    <asp:TemplateField>
                                        <HeaderTemplate>
                                            Nome
                                        </HeaderTemplate>
                                        <ItemTemplate>
                                            <asp:Label runat="server" ID="lblStatus2" Text='<%# Eval("DESC_DEPARTAMENTO") %>'></asp:Label>
                                        </ItemTemplate>
                                        <ItemStyle Width="70px" />
                                    </asp:TemplateField>
                                    <asp:TemplateField>
                                        <HeaderTemplate>
                                            Nome
                                        </HeaderTemplate>
                                        <ItemTemplate>
                                            <asp:Label runat="server" ID="lblStatus3" Text='<%# Eval("DESC_DEPARTAMENTO") %>'></asp:Label>
                                        </ItemTemplate>
                                        <ItemStyle Width="70px" />
                                    </asp:TemplateField>
                                    <asp:TemplateField>
                                        <HeaderTemplate>
                                            Nome
                                        </HeaderTemplate>
                                        <ItemTemplate>
                                            <asp:Label runat="server" ID="lblStatus4" Text='<%# Eval("DESC_DEPARTAMENTO") %>'></asp:Label>
                                        </ItemTemplate>
                                        <ItemStyle Width="70px" />
                                    </asp:TemplateField>
                                    <asp:TemplateField>
                                        <HeaderTemplate>
                                            Data Compra
                                        </HeaderTemplate>
                                        <ItemTemplate>
                                            <asp:Label runat="server" ID="lblDateTimeCompra" Text='<%# String.Format("{0:dd/MM/yyyy HH:mm:ss}", Eval ("DATA_LOG")) %>'></asp:Label>
                                        </ItemTemplate>
                                        <ItemStyle Width="180px" />
                                    </asp:TemplateField>
                                    <asp:TemplateField>
                                        <HeaderTemplate>
                                            Data Vencimento
                                        </HeaderTemplate>
                                        <ItemTemplate>
                                            <asp:Label runat="server" ID="lblDateTimeVencimento" Text='<%# String.Format("{0:dd/MM/yyyy HH:mm:ss}", Eval ("DATA_LOG")) %>'></asp:Label>
                                        </ItemTemplate>
                                        <ItemStyle Width="180px" />
                                    </asp:TemplateField>
                                </Columns>

                            </asp:GridView>
                        </div>
                    </div>
                </div>
            </ContentTemplate>

        </asp:UpdatePanel>
    </div>
</asp:Content>
